<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
.error {
	color: red;
}
</style>
</head>
<body>

<h1>Login page</h1>
<p>
<c:if test="${error == true}">
	<b class="error">${SPRING_SECURITY_LAST_EXCEPTION.message}</b>
</c:if>
</p>

<form method="post" action="j_spring_security_check" >
	<table>
		<tbody>
		<tr>
		<td>Login:</td>
		<td><input type="text" name="j_username" id="j_username"size="30" maxlength="40"  /></td>
		</tr>
		<tr>
		<td>Password:</td>
		<td><input type="password" name="j_password" id="j_password" size="30" maxlength="32" /></td>
		</tr>
		<tr>
		<td></td>
		<td><input type="submit" value="Login" /></td>
		</tr>
		</tbody>
	</table>
</form>	

</body>
</html>